<?php
/*require_once("auth/sso.php");
$sso = new SingleSignOn_Broker();
$users = $sso->getInfo();

if (!$users) {
    header("Location: login.php", true, 307);
    exit;
}
*/
$users["identity"]=2;
$user_active = $users["identity"];
require_once('user_assets.php');
$features = $privilege->getFeatures($user->role_id,1);

require_once('app_common.php');


/*if($user->adminType=="Tower Administrator")
{
    header("Location: vehicle_list.php", true, 307);
   
}  */


//if($privilege->checkAccess($user->role_id,1))
 

$features = $privilege->getFeatures($user->role_id,1);

require_once('includes/dashboard.php');
?>
<!DOCTYPE html>
<!-- saved from url=(0047)https://secure.fleetio.com/453a3e08f1/dashboard -->
<html lang="en">
   <head>
 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>Autogator</title>
    
        <script src="http://maps.google.com/maps/api/js?sensor=false" type="text/javascript"></script>    
			<!--date picker-->
		
        <script type="text/javascript" src="lib/jquery-1.7.1.min.js"></script>	
	
		 <script type="text/javascript" src="lib/bootbox.min.js"></script>
		 		<script type="text/javascript" src="lib/bootstrap-datepicker.js"></script>

	    
         <script type="text/javascript" src="lib/jquery.ui.core.js"></script>
		<script type="text/javascript" src="lib/jquery.ui.widget.js"></script> 
        <script type="text/javascript" src="js/slider.js"></script>
		<script type="text/javascript" src="lib/objs-2.1.1-min.js"></script>
		<script type="text/javascript" src="lib/puremvc-objs-2.0-min.js"></script>
		<script type="text/javascript" src="src/abc/MediatorNames.js"></script>
		<script type="text/javascript" src="src/abc/NotificationNames.js"></script>
		<script type="text/javascript" src="src/abc/ProxyNames.js"></script>
        <script type="text/javascript" src="src/abc/AppConstant.js"></script>
		<script type="text/javascript" src="src/controller/PrepModelCommand.js"></script>
		<script type="text/javascript" src="src/controller/PrepViewCommand.js"></script>
		<script type="text/javascript" src="src/controller/StartupCommand.js"></script>
        <script type="text/javascript" src="src/model/VehicleProxy.js"></script>
        <script type="text/javascript" src="src/model/InitialAssetsProxy.js"></script>
        <script type="text/javascript" src="src/model/vo/VehicleVO.js"></script>
        <script type="text/javascript" src="src/model/vo/PartnerVO.js"></script>
        <script type="text/javascript" src="src/model/vo/ReminderVO.js"></script>
	    <script type="text/javascript" src="src/view/components/UiComponent.js"></script>
		<script type="text/javascript" src="src/view/components/HomePage.js"></script>
        <script type="text/javascript" src="src/view/components/DetailPage.js"></script>
        <script type="text/javascript" src="src/view/components/ListPage.js"></script>
        <script type="text/javascript" src="src/view/components/MapPage.js"></script>
           <script type="text/javascript" src="src/view/components/MessagepopPage.js"></script>
           <script type="text/javascript" src="src/view/components/WatchPage.js"></script>
           <script type="text/javascript" src="src/view/components/SharePage.js"></script>
        <script type="text/javascript" src="src/view/components/PrivateNotePage.js"></script>
        <script type="text/javascript" src="src/view/components/AllInfoPage.js"></script>
        <script type="text/javascript" src="src/view/components/VehicleInfoPage.js"></script> 
        <script type="text/javascript" src="src/view/components/ContactInfoPage.js"></script>
        <script type="text/javascript" src="src/view/components/LocationInfoPage.js"></script> 
        <script type="text/javascript" src="src/view/components/CommentInfoPage.js"></script>
        <script type="text/javascript" src="src/view/components/PriceInfoPage.js"></script>
	    <script type="text/javascript" src="src/view/HomePageMediator.js"></script>
	  	<script type="text/javascript" src="src/view/DetailPageMediator.js"></script>
        <script type="text/javascript" src="src/view/ListPageMediator.js"></script>
        <script type="text/javascript" src="src/view/MapPageMediator.js"></script>
         <script type="text/javascript" src="src/view/MessagepopMediator.js"></script> 
        <script type="text/javascript" src="src/view/PrivateNoteMediator.js"></script> 
        <script type="text/javascript" src="src/view/AllInfoMediator.js"></script>
        <script type="text/javascript" src="src/view/VehicleInfoMediator.js"></script> 
        <script type="text/javascript" src="src/view/ContactInfoMediator.js"></script>
        <script type="text/javascript" src="src/view/LocationInfoMediator.js"></script> 
        <script type="text/javascript" src="src/view/CommentInfoMediator.js"></script>
        <script type="text/javascript" src="src/view/WatchPageMediator.js"></script>
        <script type="text/javascript" src="src/view/SharePageMediator.js"></script>
        <script type="text/javascript" src="src/view/PriceInfoMediator.js"></script> 
		<script type="text/javascript" src="src/ApplicationFacade.js"></script>
        <script type="text/javascript" src="js/jquery.ui.all.js"></script>
        <script type="text/javascript" src="js/jquery.layout.js"></script>	
        <script type="text/javascript" src="js/script.js"></script>	    
		<script type="text/javascript" src="js/jquery.color.js"></script>   
        <script type="text/javascript" src="js/anim-script.js"></script>       
       <script src="http://code.highcharts.com/highcharts.js"></script> 
       <script src="http://code.highcharts.com/modules/exporting.js"></script> 
	<link rel="stylesheet" href="http://code.jquery.com/ui/1.9.1/themes/base/jquery-ui.css" />
		<script src="http://code.jquery.com/jquery-1.8.2.js"></script>
		<script src="http://code.jquery.com/ui/1.9.1/jquery-ui.js"></script>
<link href="css/application.css" media="screen" rel="stylesheet" type="text/css">
<!-- <link href="css/datepicker.css" media="screen" rel="stylesheet" type="text/css"> -->
<link href="css/dashboards.css" media="screen" rel="stylesheet" type="text/css">
 <link href="css/style.css" media="screen" rel="stylesheet" type="text/css"> 
 	   <script type="text/javascript" src="jquery.lightbox-0.5.js"></script>
		<link rel="stylesheet" type="text/css" href="jquery.lightbox-0.5.css" media="screen" />	  
	<style type="text/css">
	/* jQuery lightBox plugin - Gallery style */
	#gallery {
		
	}
	#gallery ul { list-style: none; }
	#gallery ul li { display: inline; }
	#gallery ul img {
		
	}
	#gallery ul a:hover img {
		
	}
	#gallery ul a:hover { color: #fff; }
	</style>  
<script type="text/javascript">
      				
$().ready(function()
 {               
   // $("#cnameheader").html(global_user.admin_companyname); 
					//$("#adminnameheader").html(global_user.admin_name);
   if( document.location.hash )
	document.location.hash = "";
	var applicationFacade/*ApplicationFacade*/ = ApplicationFacade.getInstance();
        applicationFacade.startup( $("body") );
		
            $( "#datereminder" ).datepicker({ dateFormat: "yy-mm-dd" });
        

 }); 
  function getUrlVars() {
    var vars = {};
    var parts = window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi, function(m,key,value) {
        vars[key] = value;
    });
    return vars;
}
       
    
    
                                       
                            
		</script>
                <style type="text/css">
                  .default-loader{    
                    position: relative;
                    top: 50%;
                    left: 50%;
                    margin: 100px 0;
                    z-index: 102;
                    width: 150px;
                    height: 60px;
                    text-align: center;
                    font-size: 1.5em;
                   
                  } 
                  .nav-tabs > .active > a{
                      
                      background-color: #FAFAFA !important;
                  } 
                </style>       
</head>

<body>
	
   <!--  <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> -->
    
     <script src="js/bootstrap-twipsy.js"></script>
   <!--  <script src="js/bootstrap-datepicker.js"></script> -->
    <script src="js/bootstrap.min.js"></script>
    <script type="text/javascript"> current_page = "info_page";</script>
	<div id="root">
		<div id="wrapper">
                            <?php include_once 'includes/header.php'; ?>
			<div id="content">
				<div class="container">
                       
                           <div id="vehicle-content-info" style="background-color:#f2f2f2;">
                                            <!-- =============================================================================== -->
                                            <!-- ================================== Vehivle detail View ======================== -->
                                            <!-- =============================================================================== -->
                                    <div class="section">
                                        <div class="section-header"><h3><div id="vehicle-idmakemodel" class="pull-left">Add Vehicle</div></h3>
                                            <div class="btn-group pull-right" style="margin-top: 10px;">

                                            <a id="topsettingsinfo" style="display:none;" class="btn btn-mini dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-cog"></i><span class="caret"></span></a><ul class="dropdown-menu pull-right"><li id="watchlist"><a href="" data-toggle="modal" data-target="#watchlist-modal"><i class="icon-eye-open"></i>&nbsp;&nbsp;Add Watchlist</a></li><li id="share"><a href="#" data-toggle="modal" data-target="#share-modal"><i class="icon-share"></i>&nbsp;&nbsp;Share</a></li><li><a id="printpage" href="#" target='blank' ><i class="icon-print"></i>&nbsp;&nbsp;Print</a></li><li  ><a id="createreciept" href="#" target='blank'><i class="icon-list-alt"></i>&nbsp;&nbsp;Create Receipt</a></li></ul></div>
                                        </div>
                                        <div class="section-body">
                                            <!-- Start Vehicle Info Title -->
                                            <div id="vehicle-info-title" style="display: none;" >
                                            <div  class="row-fluid">
                                            <div class="span2 ac">
                                            <a href="#" class="thumbnail" style="width:90px"><img alt="No-photo-placeholder" height="90" src="images/no-photo-placeholder.png" width="90">
                                            </a>
                                            </div>
                                            <div class="span10">
                                                <div class="row-fluid">
                                                <div class="span4">
                                                <div class="stat-block">
                                                <h6 class="stat-heading">Year / Make / Model</h6>
                                                <h3 id="vehicle-yearmakemodel"></h3>

                                                </div>
                                                </div>
                                                <div class="span4">
                                                <div class="stat-block">
                                                <h6 class="stat-heading">Status</h6>
                                                <h3 id="vehicle-status"></h3>

                                                </div>
                                                </div>
                                                <div class="span4">
                                                <div class="stat-block">
                                                <h6 class="stat-heading">Created By</h6>
                                                <h3 id="vehicle-createdby"></h3>

                                                </div>
                                                </div>
                                                </div>
                                                    <div class="row-fluid">
                                                        <div class="span4">
                                                            <div class="stat-block">
                                                            <h6 class="stat-heading">City / State</h6>
                                                            <h3 id="vehicle-citystate"></h3>

                                                            </div>
                                                        </div>
                                                        <div class="span4">
                                                            <div class="stat-block">
                                                            <h6 class="stat-heading">Asking Price</h6>
                                                            <h3 id="vehicle-askingprice"></h3>

                                                            </div>
                                                        </div>
                                                        <div class="span4">
                                                            <div class="stat-block">
                                                            <h6 class="stat-heading">Created date</h6>
                                                            <h3 id="vehicle-createddate"></h3>

                                                            </div>
                                                        </div>
                                                    </div>
                                                    <div class="row-fluid">
                                                        <div class="span4"></div>
                                                        <div class="span4"></div>
                                                        <div class="span4">
                                                            <div class="btn-group">
                                                                <a id="btn-status" class="btn btn-primary" href="#"></a>
                                                                <button class="btn btn-primary dropdown-toggle" data-toggle="dropdown" style="padding-top:12px;" type="button"><span class="caret"></span></button>
                                                                <ul id="status-btn"class="dropdown-menu"  >
                                                                    <li><a href="#" onclick="document.getElementById('btn-status').innerHTML=this.innerHTML;">New Submission</a></li>
                                                                    <li><a href="#" onclick="document.getElementById('btn-status').innerHTML=this.innerHTML;">Bid Accepted</a></li>
                                                                    <li><a href="#" onclick="document.getElementById('btn-status').innerHTML=this.innerHTML;">Now In possession</a></li>
                                                                    <li><a href="#" onclick="document.getElementById('btn-status').innerHTML=this.innerHTML;">All Vehicles</a></li>
                                                                    <li><a href="#" onclick="document.getElementById('btn-status').innerHTML=this.innerHTML;">Restored</a></li>
                                                                    <li><a href="#" onclick="document.getElementById('btn-status').innerHTML=this.innerHTML;">Archived</a></li>
                                                                    <li><a href="#" onclick="document.getElementById('btn-status').innerHTML=this.innerHTML;">Deleted</a></li>

                                                                </ul>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>

                                           <ul class="nav nav-tabs" style="margin:20px 20px -1px 0px;">

                                                <li  id="ainfo-li" class="active" ><a href="#">All Info</a></li>
                                                <li id="vinfo-li"><a href="#" >Vehicle Info</a></li>
                                                <li id="cinfo-li"><a href="#" >Contact Info</a></li>
                                                <li id="vlinfo-li"><a href="#" >Vehicle Location Info</a></li>
                                                <li id="ctinfo-li"><a href="#" >Comment Info</a></li>
                                            </ul>
                                            <hr style=" margin: 10px; margin-top: 0px; margin-left: -15px; margin-right: -15px; border-top-color: #CCC; -webkit-border-top-right-radius: 0; border-top-right-radius: 0; -webkit-border-top-left-radius: 0; border-top-left-radius: 0;">        
                                            </div>
                                            <!--End Vehicle  info Title -->
                                            
                                            <div id="info-nav">
                                                <div class="slider">
                                                    <!-- =============================================================================== -->
                                                    <!-- ================================== All Info =================================== -->
                                                    <!-- =============================================================================== -->
                                                    <div id="all-info-content" ></div>
                                                    <!-- =============================================================================== -->
                                                    <!-- ================================== Vehicle Info =============================== -->
                                                    <!-- =============================================================================== -->
                                                    <div id="vehicle-info-content"></div>
                                                    <!-- =============================================================================== -->
                                                    <!-- ================================== Contact Info =============================== -->
                                                    <!-- =============================================================================== -->
                                                    <div id="contact-info-content"></div>
                                                    <!-- =============================================================================== -->
                                                    <!-- ================================== Vehicle Location Info ====================== -->
                                                    <!-- =============================================================================== -->
                                                    <div id="location-info-content"></div>
                                                    <!-- =============================================================================== -->
                                                    <!-- ================================== Comment Info =============================== -->
                                                    <!-- =============================================================================== -->
                                                    <div id="comment-info-content"></div>
                                                    <!-- =============================================================================== -->
                                                    <!-- ================================== Vehicle Location Info ====================== -->
                                                    <!-- =============================================================================== -->
                                                    <div id="tow-info-content"></div>
                                                    <!-- =============================================================================== -->
                                                    <!-- ================================== Price Info ================================= -->
                                                    <!-- =============================================================================== -->
                                                    <div id="price-info-content"></div>
                                                </div>
                                            </div>
                                            <div class="form-actions" style="text-align: right;">
                                                <button class="btn btn-primary" id="save-info-btn">Save</button>
                                                <button class="btn" id="cancel-info-btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
                                           </div>   
                                        </div>
                                    </div>
                                 </div>          
             </div>
         
        
      </div>   
   </div>
  <?php require_once 'popup_modals/watchlist-modal.php';   ?> 
  <?php require_once 'popup_modals/privatenote-modal.php';   ?> 
  <?php require_once 'popup_modals/correspondence-modal.php';   ?> 
    <?php require_once 'popup_modals/message-modal.php';   ?> 
     <?php require_once 'popup_modals/share-modal.php';   ?> 
    
 <!-- <footer id="footer">
				<div class="container">
					<div class="row">
						<div class="span5">

						</div>
						<div class="span5">

						</div>
						<div class="span2">

						</div>
					</div>
				</div>
		</footer> -->        
</body>
</html>